namespace Digitalmes.Application.Mes.Qulities.Scraps;

/// <summary>
/// 产品报废信息 DTO
/// </summary>
public sealed class QcScrapInfoDto : Dto
{
    /// <summary>
    /// 零件码
    /// </summary>
    public string? Sn { get; set; }

    /// 产品 Id。
    /// </summary>
    public long ProductId { get; set; }

    /// <summary>
    /// 产品编码
    /// </summary>
    public string? ProductCode { get; set; }

    /// <summary>
    /// 工单编号
    /// </summary>
    public string? Wo { get; set; }

    /// <summary>
    /// 作业的生产线 Id
    /// </summary>
    public long LineId { get; set; }

    /// <summary>
    /// 最后作业的工序 Id。
    /// </summary>
    public long OperationId { get; set; }

    /// <summary>
    /// 最后作业的工序编号
    /// </summary>
    public string? OperationCode { get; set; }

    /// <summary>
    /// 最后作业的工位 Id。
    /// </summary>
    public long WorkstationId { get; set; }

    /// <summary>
    /// 最后作业的工位编号
    /// </summary>
    public string? WorkstationCode { get; set; }

    /// <summary>
    /// 报废原因分类（如人为、设备故障等）
    /// </summary>
    public string? ScrapCategory { get; set; }

    /// <summary>
    /// 报废原因分类名称
    /// </summary>
    public string? ScrapCategoryName { get; set; }

    /// <summary>
    /// 报废原因
    /// </summary>
    public string? ScrapReason { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime CreatedTime { get; set; }

    public string? UpdatedBy { get; set; }

    public DateTime? UpdatedTime { get; set; }
}
